* -------------------------------------------- Figure 2: Institutional ownership

use "$data_path/database_aggregate_ts_synthetic", clear
keep if filingdateqtr >= yq(2011,1) & filingdateqtr <= yq(2017,4)

* ---------------------------------------------- Panel (A) Mutual fund ownership
line  (med_mutown_treated med_mutown_control) filingdateqtr, /// 
	   xline(216.5, lwidth(1.7) lcolor(gs12)) ///
	   xtitle("Date", size(5)) ///
	   xlabel(205 211 217 223 229, labsize(5)) ///
	   xscale(range(203  232)) ///
	   ytitle("Mutual Fund Ownership, %", size(5)) ///
	   ylabel(, labsize(5)) ///
	   lpattern(solid dash) ///
	   lcolor(navy maroon) /// 
	   graphregion(color(white)) ///
	   legend( order(1 "BDCs in Russell" 2 "BDCs not in Russell") size(medlarge))
graph export "$figures_path/figure2a.eps", replace

* -------------------------------------------- Panel (A) Institutional ownership
line  (med_instown_treated med_instown_control) filingdateqtr, /// 
	   xline(216.5, lwidth(1.7) lcolor(gs12)) ///
	   xtitle("Date", size(5)) ///
	   xlabel(205 211 217 223 229, labsize(5)) ///
	   xscale(range(203  232)) ///
	   ytitle("Institutional  Ownership, %", size(5)) ///
	   ylabel(, labsize(5)) ///
	   lpattern(solid dash) ///
	   lcolor(navy maroon) /// 
	   graphregion(color(white)) ///
	   legend( order(1 "BDCs in Russell" 2 "BDCs not in Russell") size(medlarge))
graph export "$figures_path/figure2b.eps", replace
